package com.pl.lc.app.service;

import com.pl.lc.app.config.OpenFeignConfig;
import com.pl.lc.common.param.UserAdd;
import com.pl.lc.common.param.UserLogin;
import com.pl.lc.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version 1.0
 * @Author 小胤
 * @Date 2024/6/6 16:00
 * @注释
 */
@FeignClient(value = "lc-userserver", configuration = OpenFeignConfig.class)
public interface UserFeign {
    @RequestMapping("/user/register")
    public R register(@RequestBody UserAdd userAdd);

    @RequestMapping("/user/loginpass")
    public R loginPass(@RequestBody UserLogin userLogin);

    @RequestMapping("/user/logincode")
    R loginCode(@RequestBody UserLogin userLogin);

    @RequestMapping("/user/logout")
    R logout();
}
